const state = {
  loadMenus: true, // 是否加载菜单路由, 第一次加载菜单路由时用到
  loading: false
}
const mutations = {
  SET_LOADMENUS (state, data) {
    state.loadMenus = data
  },
  SET_LOADING (state, value) {
    state.loading = value
  }
}
const actions = {
  updateLoadMenus ({ commit }) {
    commit('SET_LOADMENUS', false)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
